package zy1208.zy22;

import org.apache.commons.io.FileUtils;

import java.io.File;
import java.lang.reflect.Constructor;
import java.util.HashMap;
import java.util.List;

public class demo {
    public static void main(String[] args) throws Exception {
        List<String> lines = FileUtils.readLines(new File("D:\\ideadashuju12\\liu_ya_kai\\src\\zy1208\\zy22\\data1.txt"));
        HashMap<String, String> map = new HashMap<>();
        for (String line : lines) {
            String[] split = line.split("=");
            map.put(split[1],split[0]);
        }
        List<String> lines1 = FileUtils.readLines(new File("D:\\ideadashuju12\\liu_ya_kai\\src\\zy1208\\zy22\\data2.txt"));
        for (String line : lines) {
            String s = line.substring(0, line.length()-2);
            String[] s2 = s.split(" ");
            System.out.println(s2[0]);
            for (String s1 : map.keySet()) {
                System.out.println(s1);
                if (s1.contains(s2[0])){
                    Class<?> aClass = Class.forName(s1);
                    Constructor<?> c = aClass.getDeclaredConstructor(String.class, String.class, int.class);


                }
            }
        }
    }
}
